package cn.psvmc.cxzapi.model.goods;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品规格租金表
 *
 * @Author auto
 * @Date 2024-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_goods_specs_rent")
public class TGoodsSpecsRent implements Serializable {

    @Serial
    private static final long serialVersionUID = 4285018447556305137L;
    //商品规格租金id
    @TableId(value = "gsrid", type = IdType.AUTO)
    private Integer gsrid;

    //商品规格id
    @TableField("gsid")
    private Integer gsid;

    //商品id
    @TableField("goods_id")
    private Integer goodsId;

    //天数
    @TableField("day")
    private Integer day;

    //日单价
    @TableField(exist = false)
    private Double dayPrice;

    //租金
    @TableField("rent")
    private Double rent;

    //是否可用（0不可用1可用）
    @TableField("effective")
    private Integer effective;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;


}
